package com.smec.remes.smecManager.location;

import com.smec.moblie.glocation.LocationBean;

/**
 * Created by xupeizuo on 2018/3/12.
 */

public class SmecLocationManager {

    private static volatile SmecLocationBean locationBean;
    private static volatile SmecLocationManager smecLocationManager;
    private static byte[] syncObj = new byte[0];

    public static SmecLocationManager getInstance(){
        if(smecLocationManager == null){
            synchronized (syncObj){
                if(smecLocationManager == null){
                    smecLocationManager=new SmecLocationManager();
                    locationBean=new SmecLocationBean();
                }
            }
        }
        return smecLocationManager;
    }


    public void setLocationBean(SmecLocationBean bean){
        locationBean=bean;
    }

    public SmecLocationBean getLocationBean(){
        return locationBean;
    }

}
